package cn.tworice.client.dao;

import cn.tworice.common.entity.code.*;
import cn.tworice.vo.SourceItem;
import org.springframework.stereotype.Repository;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Repository
public interface CurrencyTransactionDao {
    List<CurrencyTransaction> queryList(@Param("i") int i, @Param("pageSize") Integer pageSize, @Param("entity") CurrencyTransaction entity);


    List<CurrencyTransaction> list( CurrencyTransaction entity);

    int queryTotal(CurrencyTransaction entity);

    int insert(CurrencyTransaction entity);

    int update(CurrencyTransaction entity);

    int del(@Param("ids") Integer[] ids);

    int insertList(@Param("list") List<CurrencyTransaction> list);

    CurrencyTransaction queryInfo(Integer id);

    Double querySumByCreator(String adminId);

    Double querySumBySource(String adminId);

    Double direction(@Param("receive") String receive,@Param("source") String source);
}